package action.chain;

import action.chain.vo.HolidayRequest;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Chief extends Handler{

    public Chief(String name) {
        super(name);
    }

    /**
     * 处理假期
     *
     * @param holidayRequest 假期请求
     */
    @Override
    void handleHoliday(HolidayRequest holidayRequest) {
        if (holidayRequest.getCount()<=3){
            System.out.println(name+"科长进行进行了审批");
        }else {
            next.handleHoliday(holidayRequest);
        }

    }
}
